/*
 * @文件描述: 
 * @版本: 
 * @作者: 周晨阳
 * @Date: 2021-04-18 14:59:47
 */
#ifdef GUI_UCGUI
#include "DIALOG.h"
#include "GUI.h"
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include "multiMeterUICodes.h"
#include "MultiMeterPre.h"
/**
 * @description: 电流表按键回调
 * @param {WM_MESSAGE} *pMsg
 * @return {*}
 */
void OnCurrentClicked(WM_MESSAGE *pMsg) {
#ifdef DEBUG
  printf("OnCurrentClicked\n");
#endif
  setMeterMode(MODE_CURRENT);
}
/**
 * @description: 电压表按键回调
 * @param {WM_MESSAGE} *pMsg
 * @return {*}
 */
void OnVoltageClicked(WM_MESSAGE *pMsg) {
#ifdef DEBUG
  printf("OnVoltageClicked\n");
#endif
  setMeterMode(MODE_VOLTAGE);
}
/**
 * @description: 欧姆表按键回调
 * @param {WM_MESSAGE} *pMsg
 * @return {*}
 */
void OnResClicked(WM_MESSAGE *pMsg) {
#ifdef DEBUG
  printf("OnResClicked\n");
#endif
  setMeterMode(MODE_RESISTANCE);
}
/**
 * @description: HOLD按键回调
 * @param {WM_MESSAGE} *pMsg
 * @return {*}
 */
void OnHoldClicked(WM_MESSAGE *pMsg) {
#ifdef DEBUG
  printf("OnHoldClicked\n");
#endif
  multiMeterHoldTrigger();
}
/**
 * @description:返回按钮
 * @param {WM_MESSAGE} *pMsg
 * @return {*}
 */
void OnHomeClicked(WM_MESSAGE *pMsg) {}
/**
 * @description: 切换量程按键回调
 * @param {WM_MESSAGE} *pMsg
 * @return {*}
 */
void OnChgRangeClicked(WM_MESSAGE *pMsg) { setRange(getMeterMode()); }
#endif
